<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.dp.util.DataMap"%>
<%@ include file="/common/common.jsp"%>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:text name='main.curPath'/>-<s:property value="cp.full_name"/></title>

  
    <link rel="stylesheet" type="text/css" href="css/desktop.css" />

    <!-- GC -->
 	<!-- LIBS
 	
 	  <link rel="stylesheet" type="text/css" href="resources/css/ext-all.css" />
 		<script type="text/javascript" src="resources/js/ext3.2.0/ext-base.js"></script>
 	
    <script type="text/javascript" src="resources/js/ext3.2.0/ext-lang-zh_CN.js"></script>
 	 -->
 	 
 
 	<!-- ENDLIBS -->
<script type="text/javascript">
	
	//var power=<%=session.getAttribute("haspower")%>;
	var who='<s:property value="cp.full_name"/>---<%=session.getAttribute("userRealName")%>';
	//var postPath ="<%=request.getContextPath()%>";
</script>
  
    <!-- DESKTOP -->
    <script type="text/javascript" src="js/StartMenu.js"></script>
    <script type="text/javascript" src="js/TaskBar.js"></script>
    <script type="text/javascript" src="js/Desktop.js"></script>
    <script type="text/javascript" src="js/App.js"></script>
    <script type="text/javascript" src="js/Module.js"></script>
    <script type="text/javascript" src="sample.js"></script>
    <script>
       var   MyDesktop = new Ext.app.App({
								init :function(){Ext.QuickTips.init();},
							
								getModules : function(){
									return [
										////getdisktopwindow('仓储费计算','grid-winaa','warehouse/finance!stockcost.do'),
										//new MyDesktop.GridWindow(),
							            //new MyDesktop.TabWindow(),
							            //new MyDesktop.AccordionWindow(),
										
							            new MyDesktop.BogusMenuModule(),
							            new MyDesktop.BogusMenuModule2(),
							             new MyDesktop.BogusMenuModule3(),
							               new MyDesktop.BogusMenuModule4(),
							                new MyDesktop.BogusMenuModule5(),
							                 new MyDesktop.BogusMenuModule6(),
							                 new MyDesktop.BogusMenuModule8(),
							                  new MyDesktop.BogusMenuModule7()
							           // new MyDesktop.BogusModule()
									];
								},
								
								getdeskModules:function(){
									return [
										<%
										
										String func=(String)session.getAttribute("func");
										if(func==null)func="";
										/*if(func.indexOf("/warehouse/contract.do")!=-1)out.print("getdisktopwindow('合同管理','warehouse/contract.do','warehouse/contract.do'),");
										if(func.indexOf("/warehouse/spotbiz.do")!=-1)out.print("getdisktopwindow('贸易物资采购销售','warehouse/spotbiz.do','warehouse/spotbiz.do'),");
										if(func.indexOf("/warehouse/spotbiz!executem.do")!=-1)out.print("getdisktopwindow('代管物资采购销售','warehouse/spotbiz!executem.do','warehouse/spotbiz!executem.do'),");
										if(func.indexOf("/warehouse/spotbiz!mstock.do")!=-1)out.print("getdisktopwindow('仓单销售','warehouse/spotbiz!mstock.do','warehouse/spotbiz!mstock.do'),");
										if(func.indexOf("/warehouse/spotbizpre.do")!=-1)out.print("getdisktopwindow('预购预销','warehouse/spotbizpre.do','warehouse/spotbizpre.do'),");
										if(func.indexOf("/warehouse/spotbiz!setprice.do")!=-1)out.print("getdisktopwindow('点价交易','warehouse/spotbiz!setprice.do','warehouse/spotbiz!setprice.do'),");
										if(func.indexOf("/warehouse/getgood.do")!=-1)out.print("getdisktopwindow('收货入库','warehouse/getgood.do','warehouse/getgood.do'),");
										if(func.indexOf("/warehouse/getgood!sendgood.do")!=-1)out.print("getdisktopwindow('发货','warehouse/getgood!sendgood.do','warehouse/getgood!sendgood.do'),");
										if(func.indexOf("/warehouse/contract!executeam.do")!=-1)out.print("getdisktopwindow('付款申请','warehouse/contract!executeam.do','warehouse/contract!executeam.do'),");
										
										if(func.indexOf("/warehouse/future!importdetail.do")!=-1)out.print("getdisktopwindow('导入成交明细','warehouse/future!importdetail.do','warehouse/future!importdetail.do'),");
										if(func.indexOf("/warehouse/future!evendetail.do")!=-1)out.print("getdisktopwindow('平仓记录','warehouse/future!evendetail.do','warehouse/future!evendetail.do'),");
										if(func.indexOf("/warehouse/future.do")!=-1)out.print("getdisktopwindow('设置套保头寸','warehouse/future.do','warehouse/future.do'),");
										
										
					  
										if(func.indexOf("/warehouse/real-amount.do")!=-1)out.print("getdisktopwindow('实数管理','warehouse/real-amount.do','warehouse/real-amount.do'),");
										if(func.indexOf("/warehouse/stock.do")!=-1)out.print("getdisktopwindow('库存货物变更','warehouse/stock.do','warehouse/stock.do'),");
										if(func.indexOf("/warehouse/stock-console.do")!=-1)out.print("getdisktopwindow('库存表','warehouse/stock-console.do','warehouse/stock-console.do'),");
										if(func.indexOf("/warehouse/getgood!openorder.do")!=-1)out.print("getdisktopwindow('出库查询','warehouse/getgood!openorder.do','warehouse/getgood!openorder.do'),");
										if(func.indexOf("/warehouse/on-way-goods.do")!=-1)out.print("getdisktopwindow('代管物资 -> 代管物资发货管理','warehouse/on-way-goods.do','warehouse/on-way-goods.do'),");
										if(func.indexOf("/warehouse/in-stock-order.do")!=-1)out.print("getdisktopwindow('代管物资 -> 入库记录','warehouse/in-stock-order.do','warehouse/in-stock-order.do'),");
										if(func.indexOf("/warehouse/on-way-query.do")!=-1)out.print("getdisktopwindow('代管物资 -> 明细查询','warehouse/on-way-query.do','warehouse/on-way-query.do'),");
										if(func.indexOf("/warehouse/spot-stock.do")!=-1)out.print("getdisktopwindow('代管物资 -> 现货持仓','warehouse/spot-stock.do','warehouse/spot-stock.do'),");
										if(func.indexOf("/warehouse/stock!card.do")!=-1)out.print("getdisktopwindow('按卡号查询','warehouse/stock!card.do','warehouse/stock!card.do'),");
										if(func.indexOf("/warehouse/stock!ware.do")!=-1)out.print("getdisktopwindow('按品名库存余额','warehouse/stock!ware.do','warehouse/stock!ware.do'),");
						             
						       
										if(func.indexOf("/finance/inoutmoney.do")!=-1)out.print("getdisktopwindow('往来资金','finance/inoutmoney.do','finance/inoutmoney.do'),");
										if(func.indexOf("/finance/get-money.do")!=-1)out.print("getdisktopwindow('收付款','finance/get-money.do','finance/get-money.do'),");
										if(func.indexOf("/finance/give-money.do")!=-1)out.print("getdisktopwindow('付款申请完成情况','finance/give-money.do','finance/give-money.do'),");
										if(func.indexOf("/warehouse/finance.do")!=-1)out.print("getdisktopwindow('每日盈亏','warehouse/finance.do','warehouse/finance.do'),");
										if(func.indexOf("/finance/inoutmoney!executem.do")!=-1)out.print("getdisktopwindow('发票登记','finance/inoutmoney!executem.do','finance/inoutmoney!executem.do'),");
										if(func.indexOf("/finance/inoutmoney!executeset.do")!=-1)out.print("getdisktopwindow('收票开票','finance/inoutmoney!executeset.do','finance/inoutmoney!executeset.do'),");
										if(func.indexOf("/warehouse/finance!stockcost.do")!=-1)out.print("getdisktopwindow('仓储费用计算','warehouse/finance!stockcost.do','warehouse/finance!stockcost.do'),");
						              
						      
										if(func.indexOf("/warehouse/report.do")!=-1)out.print("getdisktopwindow('单客户往来','warehouse/report.do','warehouse/report.do'),");
										//if(func.indexOf("/warehouse/report!notend.do")!=-1)out.print("getdisktopwindow('未结束交易明细','warehouse/report!notend.do','warehouse/report!notend.do'),");
										if(func.indexOf("/balance/balance!gotoBalanceOrder.do")!=-1)out.print("getdisktopwindow('日报表','balance/balance!gotoBalanceOrder.do','balance/balance!gotoBalanceOrder.do'),");
						              */
										%>
						                getdisktopwindow('abc','abc.do','abc.do')
																
									];
								},
							
							    // config for the start menu
							    getStartConfig : function(){
							        return {
							            title:who,// '红鹭',
							            iconCls: 'user',
							            toolItems: [
							            	{ text:'修改密码', iconCls:'settings', scope:this,handler :function() {
		
													var   batchno1=  new Ext.form.TextField({fieldLabel: '旧密码',name: 'sysuser.password',inputType:'password'});
													var   batchno2=  new Ext.form.TextField({fieldLabel: '新密码',name: 'sysuser.notes',inputType:'password'});
													 var   batchno3=  new Ext.form.TextField({fieldLabel: '再次输入新密码',name: 'sysuser.password1',inputType:'password',enableKeyEvents : true});
													
													 batchno3.on("blur", function(e){
														
														     if(batchno3.getValue()!=batchno2.getValue())
														     {
														    	  showmsg('两次密码不同！');
															  
															   }
																
															});
													 
														var formp= new Ext.form.FormPanel({frame: true, labelAlign: 'right', labelWidth: 100,   waitMsgTarget: true, defaults: {width: 200,allowBlank:false}, defaultType: 'textfield',
														        items:[batchno1,batchno2,batchno3]
														        });
														
															//win =getWindowok('',400,formp,'/usermanage/sysuser!save.do',{newStatus: 'delivered'});
															win =getWindowok('修改密码',200,formp,'/usermanage/sysuser!changepass.do',{newStatus: 'delivered'},
																		function (btn){
																    	  win.close();
																    	 }
																	);
															win.show();
		                                         }}
							            	//,'-',{
//							                text:'Logout', iconCls:'logout', scope:this}
							            ]
							        };
							    }
							});
       
       
       
var windowIndex = 0;

MyDesktop.BogusModule = Ext.extend(Ext.app.Module, {
    init : function(){
        this.launcher = {text: 'Window '+(++windowIndex),iconCls:'bogus',handler : this.createWindow,scope: this,windowId:windowIndex}
    },
    createWindow : function(src){
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow(src.urlaaa);//'bogus'+src.windowId);width:640,height:480,
        if(!win){
            win = desktop.createWindow({
                id: src.urlaaa,title:src.text,iconCls: 'bogus',shim:false,animCollapse:false, constrainHeader:true
                ,html : FormUtil.createFrame(src.windowId+'1',src.urlaaa , 'auto')
            });
        }
        win.show();
    }
});



	<%
		
			
		%>
<%!
	public String sett(String fn ,Vector vAuth)
			{
				Vector sV1 = null;
				DataMap sH1 = null;
				DataMap mH1 = null;
				String mainmenu_id = null;
				String mainmenu_name = null;
				String htm="";
				for (int i = 0; i < vAuth.size(); i++) {
					sV1 = (Vector) vAuth.elementAt(i);
					sH1 = (DataMap) sV1.elementAt(0);
					mainmenu_id = sH1.getMapData("mainmenu_id");
					mainmenu_name = sH1.getMapData("mainmenu_name");
		           if(fn.equals(mainmenu_name))
						for (int j = 1; j < sV1.size(); j++) {
								mH1 = (DataMap) sV1.elementAt(j);
								if(j!=1) htm+=(",");
								htm+=("{hidden:false,text: '"+mH1.getMapData("submenu_name")
									 +"',iconCls:'bogus',handler : this.createWindow,scope: this,windowId: ++windowIndex,urlaaa:'"
									 +""+mH1.getMapData("ctrl_url")+"'}\r\n");
					               
						}
						/**/
				}
				return htm;
			}
		%>



//getdisktopwindow('现货管理','grid-winaa','warehouse/finance!stockcost.do').createWindow(),//
var selecteddata='sdf,sdfs';
var companyMenu = new Ext.menu.Menu();
var sy=selecteddata.split(',');
//alert(selecteddata);
MyDesktop.BogusMenuModule2 = Ext.extend(MyDesktop.BogusModule, {
    init : function(){
        this.launcher = {
            text: '系统管理',iconCls: 'bogus',handler: function() {return false;},
            menu: {
                items://xh
                	[
                			<%
			/*系统管理	  	权限管理	  	 		栏目管理	  内容管理	统计管理	 客户服务 消息与广告 终端用户管理 
			目录发布	  	业务管理	  		广告管理	  	
			K16跳转	   	酒店信息发布		部门管理	  			  评论管理	  	终端管理	 
			*/ out.print(	sett("系统管理",(Vector)session.getAttribute("vAuth")));%>
                ]
            }
        }
    }
});
MyDesktop.BogusMenuModule = Ext.extend(MyDesktop.BogusModule, {
    init : function(){
        this.launcher = {  text: '权限管理',iconCls: 'bogus',handler: function() {return false;},
            menu: { items:[ <%out.print(	sett("权限管理",(Vector)session.getAttribute("vAuth")));%> ] }
        }
    }
});

MyDesktop.BogusMenuModule3 = Ext.extend(MyDesktop.BogusModule, {
    init : function(){
        this.launcher = { text: '栏目管理 ',iconCls: 'bogus',handler: function() {return false;},
            menu: { items:[ <%out.print(	sett("栏目管理",(Vector)session.getAttribute("vAuth")));%> ]}
        }
    }
});
MyDesktop.BogusMenuModule4 = Ext.extend(MyDesktop.BogusModule, {
    init : function(){
        this.launcher = { text: '内容管理',iconCls: 'bogus',handler: function() {return false;},
            menu: { items:[ <%out.print(	sett("内容管理",(Vector)session.getAttribute("vAuth")));%> ]}
        }
    }
});

MyDesktop.BogusMenuModule5 = Ext.extend(MyDesktop.BogusModule, {
    init : function(){
        this.launcher = { text: '统计管理',iconCls: 'bogus',handler: function() {return false;},
           menu: { items:[ <%out.print(	sett("统计管理",(Vector)session.getAttribute("vAuth")));%> ] }
        }
    }
});
			
				
MyDesktop.BogusMenuModule6 = Ext.extend(MyDesktop.BogusModule, {
    init : function(){
        this.launcher = {
            text: '客户服务',iconCls: 'bogus',handler: function() {return false;},
           menu: { items:[ <%out.print(	sett("客户服务",(Vector)session.getAttribute("vAuth")));%> ] }
        }
    }
});				

MyDesktop.BogusMenuModule7 = Ext.extend(MyDesktop.BogusModule, {
    init : function(){
        this.launcher = {
            text: '消息与广告',iconCls: 'bogus',handler: function() {return false;},
            menu: { items:[ <%out.print(	sett("消息与广告",(Vector)session.getAttribute("vAuth")));%> ] }
        }
    }
});	
MyDesktop.BogusMenuModule8 = Ext.extend(MyDesktop.BogusModule, {
    init : function(){
        this.launcher = {
            text: '终端用户管理',iconCls: 'bogus',handler: function() {return false;},
            menu: { items:[ <%out.print(	sett("终端用户管理",(Vector)session.getAttribute("vAuth")));%> ] }
        }
    }
});
</script>
</head>
<body scroll="no">

<div id="x-desktop">
   <!--   <a href="http://extjs.com" target="_blank" style="margin:5px; float:right;"><img src="images/powered.gif" /></a>
           grid48x48.png -->
    <dl id="x-shortcuts">
    <table>
    <tr>
      <% 
     
      
      String pathh="/2";
if(func.indexOf("/warehouse/contract.do")!=-1)
    	  out.print("<td><dt id=\"warehouse/contract.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/1.png\" /> "+
    	            " <div style=\"font-size: 14px;\" >webview内容管理</div></a></dt></td>");
if(func.indexOf("/warehouse/spotbiz.do")!=-1)
          	  out.print(" <td ><dt id=\"warehouse/spotbiz.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/2.png\" />  "+
          			"  <div style=\"font-size: 14px;\" >资讯内容</div></a></dt> </td>");
if(func.indexOf("/warehouse/spotbiz!executem.do")!=-1)
	  out.print(" <td>   <dt id=\"warehouse/spotbiz!executem.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/3.png\" />  "+
			  "  <div style=\"font-size: 14px;\" >代管物资采购销售</div></a></dt></td>");
if(func.indexOf("/warehouse/spotbiz!mstock.do")!=-1)
	  out.print(" <td>   <dt id=\"warehouse/spotbiz!mstock.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/9.png\" />  "+
			  "  <div style=\"font-size: 14px;\" >仓单销售</div></a></dt></td>");
if(func.indexOf("/warehouse/spotbizpre.do")!=-1)
  out.print("<td>   <dt id=\"warehouse/spotbizpre.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/4.png\" />  "+
		  "  <div style=\"font-size: 14px;\" >预购预销</div></a></dt></td>");
if(func.indexOf("/warehouse/spotbiz!setprice.do")!=-1)
	  out.print("<td>   <dt id=\"warehouse/spotbiz!setprice.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/5.png\" />  "+
			  "  <div style=\"font-size: 14px;\" >点价交易</div></a></dt></td>");
if(func.indexOf("/warehouse/getgood.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/getgood.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/6.png\" />  "+
			  "  <div style=\"font-size: 14px;\" >收货入库</div></a></dt></td>");
if(func.indexOf("/warehouse/getgood!sendgood.do")!=-1)
	  out.print("<td>   <dt id=\"warehouse/getgood!sendgood.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/7.png\" /> "+
			  " <div style=\"font-size: 14px;\" >发货</div></a></dt> </td>");
if(func.indexOf("/warehouse/contract!executeam.do")!=-1)
	  out.print("<td>   <dt id=\"warehouse/contract!executeam.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/8.png\" /> "+
	 " <div style=\"font-size: 14px;\" >付款申请</div></a></dt></td>");

%>
</tr>



 
<tr>
<% 
if(func.indexOf("/warehouse/real-amount.do")!=-1)
	  out.print("<td> <dt id=\"warehouse/real-amount.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/430.png\" />"+
				 " <div style=\"font-size: 14px;\" >实数管理</div></a></dt></td>");
if(func.indexOf("/warehouse/stock.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/stock.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/431.png\" /> "+
				 " <div style=\"font-size: 14px;\" >库存货物变更</div></a></dt></td>");
if(func.indexOf("/warehouse/stock-console.do")!=-1)
	  out.print("<td> <dt id=\"warehouse/stock-console.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/432.png\" /> "+
				 " <div style=\"font-size: 14px;\" >库存表</div></a></dt></td>");
if(func.indexOf("/warehouse/getgood!openorder.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/getgood!openorder.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/433.png\" />"+
				 "  <div style=\"font-size: 14px;\" >出库查询</div></a></dt></td>");
 if(func.indexOf("/warehouse/on-way-goods.do")!=-1)
	  out.print("<td> <dt id=\"warehouse/on-way-goods.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/434.png\" /> "+
				 " <div style=\"font-size: 14px;\" >代管物资发货管理</div></a></dt></td>");
if(func.indexOf("/warehouse/in-stock-order.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/in-stock-order.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/435.png\" />"+
				 "  <div style=\"font-size: 14px;\" >代管物资入库记录</div></a></dt></td>");
if(func.indexOf("/warehouse/on-way-query.do")!=-1)
	  out.print("<td> <dt id=\"warehouse/on-way-query.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/436.png\" />"+
				 "  <div style=\"font-size: 14px;\" >代管物资明细查询</div></a></dt></td>");
if(func.indexOf("/warehouse/spot-stock.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/spot-stock.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/437.png\" /> "+
				 " <div style=\"font-size: 14px;\" >代管物资现货持仓</div></a></dt></td>");
if(func.indexOf("/warehouse/stock!card.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/stock!card.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/438.png\" />"+
				 "  <div style=\"font-size: 14px;\" >按卡号查询</div></a></dt></td>");
%>
</tr>
<tr> <%  
if(func.indexOf("/warehouse/stock!ware.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/stock!ware.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/3129.png\" /> "+
				 " <div style=\"font-size: 14px;\" >按品名库存余额</div></a></dt></td>");
 if(func.indexOf("/finance/inoutmoney.do")!=-1)
	  out.print("<td> <dt id=\"finance/inoutmoney.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/3130.png\" /> "+
				 " <div style=\"font-size: 14px;\" >往来资金</div></a></dt></td>");
if(func.indexOf("/finance/get-money.do")!=-1)
	  out.print("<td>  <dt id=\"finance/get-money.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/3131.png\" />"+
				 "  <div style=\"font-size: 14px;\" >收付款</div></a></dt></td>");
if(func.indexOf("/finance/give-money.do")!=-1)
	  out.print("<td> <dt id=\"finance/give-money.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/3132.png\" /> "+
				 " <div style=\"font-size: 14px;\" >付款申请完成情况</div></a></dt></td>");
if(func.indexOf("/warehouse/finance.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/finance.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/3134.png\" /> "+
				 " <div style=\"font-size: 14px;\" >每日盈亏</div></a></dt></td>");
if(func.indexOf("/finance/inoutmoney!executem.do")!=-1)
	  out.print("<td> <dt id=\"finance/inoutmoney!executem.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/3138.png\" /> "+
				 " <div style=\"font-size: 14px;\" >发票登记</div></a></dt></td>");
if(func.indexOf("/finance/inoutmoney!executeset.do")!=-1)
	  out.print("<td>  <dt id=\"finance/inoutmoney!executeset.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/3139.png\" />"+
				 "  <div style=\"font-size: 14px;\" >收票开票</div></a></dt></td>");
if(func.indexOf("/warehouse/finance!stockcost.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/finance!stockcost.do-shortcut\"><a href=\"#\"><img src=\"image"+pathh+"/3140.png\" /> "+
				" <div style=\"font-size: 14px;\" >仓储费用计算</div></a> </dt></td>");
%>
</tr>
<tr><% 
if(func.indexOf("/warehouse/future!importdetail.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/future!importdetail.do-shortcut\"><a href=\"#\"><img src=\"image"+pathh+"/3140.png\" />"+
				 " <div style=\"font-size: 14px;\" >导入成交明细</div></a> </dt></td>");
  if(func.indexOf("/warehouse/future!evendetail.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/future!evendetail.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/cat1.png\" />"+
				 "  <div style=\"font-size: 14px;\" >平仓记录</div></a></dt></td>");
  if(func.indexOf("/warehouse/future.do")!=-1)
	  out.print("<td> <dt id=\"warehouse/future.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/cat2.png\" /> "+
				 " <div style=\"font-size: 14px;\" >设置套保头寸</div></a></dt></td>");
 if(func.indexOf("/warehouse/report.do")!=-1)
	  out.print("<td>  <dt id=\"warehouse/report.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/cat3.png\" />"+
				 "  <div style=\"font-size: 14px;\" >单客户往来</div></a></dt></td>");
//if(func.indexOf("/warehouse/report!notend.do")!=-1)
//	  out.print("<td>   <dt id=\"warehouse/report!notend.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/cat4.png\" /> "+
//				 " <div style=\"font-size: 14px;\" >未结束交易明细</div></a></dt></td>");
if(func.indexOf("/balance/balance!gotoBalanceOrder.do")!=-1)
	  out.print("<td>   <dt id=\"balance/balance!gotoBalanceOrder.do-shortcut\"> <a href=\"#\"><img src=\"image"+pathh+"/cat5.png\" />"+
				 "  <div style=\"font-size: 14px;\" >日报表</div></a></dt></td>");
//if(func.indexOf("/warehouse/contract.do")!=-1)
	  out.print("<td>   </td>");
%>
</tr>
    </table>
     
       <!--   <dt id="acc-win-shortcut">
            <a href="#"><img src="images/s.gif" />
            <div>Accordion Window</div></a>
        </dt>
        -->
    </dl>
</div>

<div id="ux-taskbar">
	<div id="ux-taskbar-start"></div>
	<div id="ux-taskbuttons-panel"></div>
	<div class="x-clear"></div>
</div>

</body>
</html>
